package com.suyuan.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class StevedoringInforExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StevedoringInforExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andStevedoringidIsNull() {
            addCriterion("StevedoringID is null");
            return (Criteria) this;
        }

        public Criteria andStevedoringidIsNotNull() {
            addCriterion("StevedoringID is not null");
            return (Criteria) this;
        }

        public Criteria andStevedoringidEqualTo(Integer value) {
            addCriterion("StevedoringID =", value, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidNotEqualTo(Integer value) {
            addCriterion("StevedoringID <>", value, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidGreaterThan(Integer value) {
            addCriterion("StevedoringID >", value, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidGreaterThanOrEqualTo(Integer value) {
            addCriterion("StevedoringID >=", value, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidLessThan(Integer value) {
            addCriterion("StevedoringID <", value, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidLessThanOrEqualTo(Integer value) {
            addCriterion("StevedoringID <=", value, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidIn(List<Integer> values) {
            addCriterion("StevedoringID in", values, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidNotIn(List<Integer> values) {
            addCriterion("StevedoringID not in", values, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidBetween(Integer value1, Integer value2) {
            addCriterion("StevedoringID between", value1, value2, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andStevedoringidNotBetween(Integer value1, Integer value2) {
            addCriterion("StevedoringID not between", value1, value2, "stevedoringid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIsNull() {
            addCriterion("TransitBatchID is null");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIsNotNull() {
            addCriterion("TransitBatchID is not null");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidEqualTo(Integer value) {
            addCriterion("TransitBatchID =", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotEqualTo(Integer value) {
            addCriterion("TransitBatchID <>", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidGreaterThan(Integer value) {
            addCriterion("TransitBatchID >", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidGreaterThanOrEqualTo(Integer value) {
            addCriterion("TransitBatchID >=", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidLessThan(Integer value) {
            addCriterion("TransitBatchID <", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidLessThanOrEqualTo(Integer value) {
            addCriterion("TransitBatchID <=", value, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidIn(List<Integer> values) {
            addCriterion("TransitBatchID in", values, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotIn(List<Integer> values) {
            addCriterion("TransitBatchID not in", values, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidBetween(Integer value1, Integer value2) {
            addCriterion("TransitBatchID between", value1, value2, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andTransitbatchidNotBetween(Integer value1, Integer value2) {
            addCriterion("TransitBatchID not between", value1, value2, "transitbatchid");
            return (Criteria) this;
        }

        public Criteria andProductidIsNull() {
            addCriterion("ProductID is null");
            return (Criteria) this;
        }

        public Criteria andProductidIsNotNull() {
            addCriterion("ProductID is not null");
            return (Criteria) this;
        }

        public Criteria andProductidEqualTo(Integer value) {
            addCriterion("ProductID =", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotEqualTo(Integer value) {
            addCriterion("ProductID <>", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThan(Integer value) {
            addCriterion("ProductID >", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ProductID >=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThan(Integer value) {
            addCriterion("ProductID <", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThanOrEqualTo(Integer value) {
            addCriterion("ProductID <=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidIn(List<Integer> values) {
            addCriterion("ProductID in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotIn(List<Integer> values) {
            addCriterion("ProductID not in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidBetween(Integer value1, Integer value2) {
            addCriterion("ProductID between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotBetween(Integer value1, Integer value2) {
            addCriterion("ProductID not between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProducttypeIsNull() {
            addCriterion("ProductType is null");
            return (Criteria) this;
        }

        public Criteria andProducttypeIsNotNull() {
            addCriterion("ProductType is not null");
            return (Criteria) this;
        }

        public Criteria andProducttypeEqualTo(String value) {
            addCriterion("ProductType =", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeNotEqualTo(String value) {
            addCriterion("ProductType <>", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeGreaterThan(String value) {
            addCriterion("ProductType >", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeGreaterThanOrEqualTo(String value) {
            addCriterion("ProductType >=", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeLessThan(String value) {
            addCriterion("ProductType <", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeLessThanOrEqualTo(String value) {
            addCriterion("ProductType <=", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeLike(String value) {
            addCriterion("ProductType like", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeNotLike(String value) {
            addCriterion("ProductType not like", value, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeIn(List<String> values) {
            addCriterion("ProductType in", values, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeNotIn(List<String> values) {
            addCriterion("ProductType not in", values, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeBetween(String value1, String value2) {
            addCriterion("ProductType between", value1, value2, "producttype");
            return (Criteria) this;
        }

        public Criteria andProducttypeNotBetween(String value1, String value2) {
            addCriterion("ProductType not between", value1, value2, "producttype");
            return (Criteria) this;
        }

        public Criteria andActiontypeIsNull() {
            addCriterion("ActionType is null");
            return (Criteria) this;
        }

        public Criteria andActiontypeIsNotNull() {
            addCriterion("ActionType is not null");
            return (Criteria) this;
        }

        public Criteria andActiontypeEqualTo(String value) {
            addCriterion("ActionType =", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeNotEqualTo(String value) {
            addCriterion("ActionType <>", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeGreaterThan(String value) {
            addCriterion("ActionType >", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeGreaterThanOrEqualTo(String value) {
            addCriterion("ActionType >=", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeLessThan(String value) {
            addCriterion("ActionType <", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeLessThanOrEqualTo(String value) {
            addCriterion("ActionType <=", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeLike(String value) {
            addCriterion("ActionType like", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeNotLike(String value) {
            addCriterion("ActionType not like", value, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeIn(List<String> values) {
            addCriterion("ActionType in", values, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeNotIn(List<String> values) {
            addCriterion("ActionType not in", values, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeBetween(String value1, String value2) {
            addCriterion("ActionType between", value1, value2, "actiontype");
            return (Criteria) this;
        }

        public Criteria andActiontypeNotBetween(String value1, String value2) {
            addCriterion("ActionType not between", value1, value2, "actiontype");
            return (Criteria) this;
        }

        public Criteria andLoadtimeIsNull() {
            addCriterion("LoadTime is null");
            return (Criteria) this;
        }

        public Criteria andLoadtimeIsNotNull() {
            addCriterion("LoadTime is not null");
            return (Criteria) this;
        }

        public Criteria andLoadtimeEqualTo(Date value) {
            addCriterionForJDBCDate("LoadTime =", value, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("LoadTime <>", value, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeGreaterThan(Date value) {
            addCriterionForJDBCDate("LoadTime >", value, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("LoadTime >=", value, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeLessThan(Date value) {
            addCriterionForJDBCDate("LoadTime <", value, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("LoadTime <=", value, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeIn(List<Date> values) {
            addCriterionForJDBCDate("LoadTime in", values, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("LoadTime not in", values, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("LoadTime between", value1, value2, "loadtime");
            return (Criteria) this;
        }

        public Criteria andLoadtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("LoadTime not between", value1, value2, "loadtime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("Remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("Remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("Remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("Remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("Remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("Remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("Remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("Remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("Remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("Remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("Remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("Remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("Remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("Remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}